desc 'hshsh'
task :appoint do
  threads = []
  1.upto(5).each do |i|
    threads << Thread.new do
      sleep(1 + (rand * 3))
      resp = HTTParty.get('http://car.kamorstore.com/appoint')
      puts "#{resp.body} --- #{Thread.current}"
    end
  end
  threads.each(&:join)
end